﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="CustomerContactSystem.Core" namespace="CustomerContactSystem.Core.Model">
    <class name="EnquiryEmail" table="EnquiryEmails">
        <id name="Id">
            <generator class="native" />
        </id>
        <many-to-one name="Enquiry" class="Enquiry" not-null="true" foreign-key="FK_EnquiryEmails_Enquiries"></many-to-one>
        <property name="DateCreated" not-null="true" />
        <property name="SentFrom" not-null="true" length="250" />
        <property name="SentTo" not-null="true" length="250" />
        <property name="CcList" not-null="false" length="512" />
        <property name="BccList" not-null="false" length="512" />
        <property name="Subject" not-null="true" length="100" />
        <property name="EmailBody" not-null="true" type="StringClob" />
        <property name="Attachments" not-null="false" length="512" />
        <property name="IsHtml" not-null="true" />
        <property name="HasBeenSent" not-null="true" />
        <property name="DateSent" not-null="false" />
    </class>
</hibernate-mapping>